<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
	<title>单据打印</title>
</head>
<body>
<div th:if="${showPrint}">
    <div th:replace="web/pz/his/print/common/commonHeaderX::common_header"></div>
</div>
    <div th:fragment="printDiv" id="printDiv" style="width: 297mm; margin: 1em auto; padding: 1em;">
    <link href="/res/jquery/myPrint_1.css" rel="stylesheet">
	<div class="print-area" style="">
		<div class="box" style="height: 100%;width: 100%;">
			<div class="box" style="width: 100px;">
				<div class="box-f1 box box-item-cr m-r" style="">
					<div class="bingingTxt">装订线</div>
				</div>
				<div class="binding"></div>
			</div>
			<div class="box-f1" style="padding: 1em 2em;">
				<div class="box box-ver" style="">
					<div class="applyCodeArea">
						<div class="applyCode">[[${pzTicket.pz.pzMainVO.applyCode}]]</div>
						<img class="qrImg" style="" alt="二维码图片" th:src="${pzTicket.qrCodeUrl}">
					</div>
					<div class="titleArea" style="">
						<div class="title" style="">[[${pzTicket.schoolName}]]财务借款单</div>
					</div>
					<div class="box box-item-cl" style="margin: .5em 0;">
						<div class="box-f1"></div>
						<div class="box">
							<div>附件：</div>
							<div class="box-f1">[[${pzTicket.pz.paperNum}]]</div>
							<div>&nbsp;张</div>
						</div>
					</div>
					<div class="box-f1">
						<table class="table">
							<tr>
								<td>
									<div class="row1 justify">
										预算部门<span></span>
									</div>
								</td>
								<td style="width: 18em;padding: 0 .5em;">[[${pzTicket.pz.pzMainVO.applyDeptName}]]</td>
								<td style="width: 5em;">
									<div class="box box-item-cc">
									借款人
									</div>
								</td>
								<td>
									<div class="box" style="padding: 0 .5em;">
									[[${pzTicket.pz.pzMainVO.applyUserName}]]（手签）
									</div>
								</td>
							</tr>
							<tr>
								<td style="width: 8em;">
									<div class="row1 justify">
										事由<span></span>
									</div>
								</td>
								<td colspan="3" style="padding: 0 .5em;">[[${pzTicket.pz.pzMainVO.title}]]</td>
							</tr>
							<tr>
								<td>
									<div class="row1 justify">借款金额<span></span></div>
								</td>
								<td colspan="3" style="padding: 0;">
									<div class="box box-item-cl">
										<div class="box box-ver box-item-cc" style="font-size: .8em;padding-left: .5em;">
											<div>人民币</div>
											<div>(大写)</div>
										</div>
										<div class="box-f1" style="padding-left: .5em;">
											<div>[[${pzTicket.pz.moneyBig}]]</div>
										</div>
										<div>
											<table class="table2">
												<tr style="border-bottom: 1px solid #000;">
													<td>千</td>
													<td>百</td>
													<td>十</td>
													<td>万</td>
													<td>千</td>
													<td>百</td>
													<td>十</td>
													<td>元</td>
													<td>角</td>
													<td>分</td>
												</tr>
												<tr>
													<td id="m10"></td>
													<td id="m9"></td>
													<td id="m8"></td>
													<td id="m7"></td>
													<td id="m6"></td>
													<td id="m5"></td>
													<td id="m4"></td>
													<td id="m3"></td>
													<td id="m2"></td>
													<td id="m1"></td>
												</tr>
											</table>
										</div>
									</div>
								</td>
							</tr>
							<tr>
								<td>
									<div class="row1 justify">经费来源<span></span></div>
								</td>
								<td colspan="3">
									<div style="margin-left: .5em;"><span th:utext="${pzTicket.pz.moneyStr}"/></div>
								</td>
							</tr>
							<tr>
								<td>
									<div class="row2 box box-ver box-item-cc">
											<div class="justify" style="height: 1.5em;">项目办<span></span></div>
											<div class="justify" style="height: 1.5em;">审批意见<span></span></div>
									</div>
								</td>
								<td id="print2_1_3imgDiv">
									<div th:if="${pzTicket.pz.pzMainVO.spendingType==6}">
										<span th:if="${#maps.containsKey(pzTicket.auditMap, 'zxxz')}" th:text="${pzTicket.auditMap.zxxz}"/>&nbsp;
										<img class='confirmImg' style="position:absolute;z-index:-1;"
											 th:if="${pzTicket.auditMap['zxxzConfirmImg']}"
											 th:src="@{${pzTicket.auditMap.zxxzConfirmImg}}"/>&nbsp;
										<img class='img' style="position:absolute;left: 6em;z-index:-1;" th:if="${#maps.containsKey(pzTicket.auditMap, 'zxxzImg')}" th:src="@{${pzTicket.auditMap.zxxzImg}}"/>
									</div>
									<hr th:unless="${pzTicket.pz.pzMainVO.spendingType==6}" class="xiexian"/>
								</td>
								<td rowspan="3" style="width: 5em;">
									<div class="box box-item-cc">
										<div>财务<br/>支付</div>
									</div>
								</td>
								<td rowspan="3" style="height: 10em;">
									<div style="height: 100%;">
										<div class="box box-ver" style="height: 100%;">
											<div class="box-f1 box-item-cl box" style="padding: 0 .5em;">
												<div class="box-f1 box" style="">
													<div class="box-f1">(大写)</div>
													<!-- <div>¥&nbsp;${moneyBigReal}</div> -->
												</div>
											</div>
											<div class="box-f1 box-item-cl box" style="border-top: 1px solid #000;border-bottom: 1px solid #000;padding: 0 .5em;">
												<div class="box-f1 box" style="">
													<div class="box-f1">1. 转账支付</div>
													<!-- <div>¥&nbsp;${moneyRealtransfer}&nbsp;元</div> -->
												</div>
											</div>
											<div class="box-f1 box box-item-cl" style="padding: 0 .5em;">
												<div class="box-f1 box" style="">
													<div class="box-f1">2. 现金支付</div>
													<!-- <div>¥&nbsp;${moneyRealCash}&nbsp;元</div> -->
												</div>
											</div>
										</div>
									</div>
								</td>
							</tr>
							<tr>
								<td>
									<div class="row2 box box-ver box-item-cc">
										<div class="justify" style="height: 1.5em;">部门领导<span></span></div>
										<div class="justify" style="height: 1.5em;">审批意见<span></span></div>
									</div>
								</td>
								<td id="print2_1_3imgDiv">
									<span th:if="${#maps.containsKey(pzTicket.auditMap, 'bmld')}" th:text="${pzTicket.auditMap.bmld}"/>&nbsp;
									<img class='confirmImg' style="position:absolute;z-index:-1;"
										 th:if="${pzTicket.auditMap['bmldConfirmImg']}"
										 th:src="@{${pzTicket.auditMap.bmldConfirmImg}}"/>&nbsp;
									<img class='img' style="position:absolute;left: 6em;z-index:-1;" th:if="${#maps.containsKey(pzTicket.auditMap, 'bmldImg')}" th:src="@{${pzTicket.auditMap.bmldImg}}"/>
								</td>
							</tr>
							<tr>
								<td>
									<div class="row2 box box-ver box-item-cc">
										<div class="justify" style="height: 1.5em;">分管领导<span></span></div>
										<div class="justify" style="height: 1.5em;">审批意见<span></span></div>
									</div>
								</td>
								<td id="print2_1_3imgDiv">
									<span th:if="${#maps.containsKey(pzTicket.auditMap, 'fgld')}" th:text="${pzTicket.auditMap.fgld}"/>&nbsp;
									<img class='confirmImg' style="position:absolute;z-index:-1;"
										 th:if="${pzTicket.auditMap['fgldConfirmImg']}"
										 th:src="@{${pzTicket.auditMap.fgldConfirmImg}}"/>&nbsp;
									<img class='img' style="position:absolute;z-index:-1;" th:if="${#maps.containsKey(pzTicket.auditMap, 'fgldImg')}" th:src="@{${pzTicket.auditMap.fgldImg}}"/>
								</td>
							</tr>
							<tr>
								<td>
									<div class="row2 box box-ver box-item-cc">
										<div class="justify" style="height: 1.5em;">计划财务处<span></span></div>
										<div class="justify" style="height: 1.5em;">审批意见<span></span></div>
									</div>
								</td>
								<td id="print2_1_3imgDiv">
								<span th:if="${#maps.containsKey(pzTicket.auditMap, 'cwcz')}" th:text="${pzTicket.auditMap.cwcz}"/>&nbsp;
                                <img class='confirmImg' style="position:absolute;z-index:-1;" th:if="${#maps.containsKey(pzTicket.auditMap, 'cwczConfirmImg')}" th:src="@{${pzTicket.auditMap.cwczConfirmImg}}"/>
                                <img class='img' style="position:absolute;left: 6em;z-index:-1;" th:if="${#maps.containsKey(pzTicket.auditMap, 'cwczImg')}" th:src="@{${pzTicket.auditMap.cwczImg}}"/>

								</td>
								<td rowspan="2">
									<div class="box box-item-cc">
										<div>说明</div>
									</div>
								</td>
								<td rowspan="2">
									<div class="desc" style="">
										<div>1. 借款人一栏除打印字体外，须借款人本人手签（名）；</div>
										<div>2. 借款依据及清单请附后；</div>
										<div>3. 本借款单必须加盖部门公章。</div>
									</div>
								</td>
							</tr>
							<tr>
								<td>
									<div class="row2 box box-ver box-item-cc">
										<div class="justify" style="height: 1.5em;">主管财务院长<span></span></div>
										<div class="justify" style="height: 1.5em;">审批意见<span></span></div>
									</div>
								</td>
								<td id="print2_1_4imgDiv">
								<span th:if="${#maps.containsKey(pzTicket.auditMap, 'zgcwyz')}" th:text="${pzTicket.auditMap.zgcwyz}"/>&nbsp;
                                <img class='confirmImg' style="position:absolute;z-index:-1;" th:if="${#maps.containsKey(pzTicket.auditMap, 'zgcwyzConfirmImg')}" th:src="@{${pzTicket.auditMap.zgcwyzConfirmImg}}"/>
                                <img class='img' th:if="${#maps.containsKey(pzTicket.auditMap, 'zgcwyzImg')}" th:src="@{${pzTicket.auditMap.zgcwyzImg}}"/>

								</td>
							</tr>
						</table>
					</div>
					<div class="box">
						<div class="box-f1 box">
							<div>打印日期：</div>
							<div class="box-f1">[[${#dates.format(pzTicket.pz.printTime, 'yyyy-MM-dd HH:mm')}]]</div>
						</div>
						<div class="box-f1 box box-item-cr">
							<div class="box">
								<div>第 </div>
								<div style="margin-left: .5em;">[[${pzTicket.pz.printNum}+1]]</div>
								<div class="box-f1" style="margin-left: .5em;"> 次打印</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>

<script type="text/javascript">
var moneyReal = parseFloat('[[${pzTicket.pz.pzMainVO.money}]]').toFixed(2);
var moneyRealShow = (moneyReal*100).toFixed(0);
var moneyReallength = moneyRealShow.length;
for(var key in moneyRealShow){
	document.getElementById('m'+(moneyReallength-key)).innerText=moneyRealShow[key];
}
document.getElementById('m'+(moneyReallength+1)).innerText="¥";
</script>
	</div>
</body>
</html>